package com.king.system.service.impl;

import com.king.system.domain.SysLoginInfo;
import com.king.system.mapper.SysLoginInfoMapper;
import com.king.system.service.ISysLoginInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 系统访问日志服务四线程
 */

@Service
public class SysLoginInfoServiceImpl implements ISysLoginInfoService {
    @Autowired
    private SysLoginInfoMapper sysLoginInfoMapper;
    @Override
    public void insertLoginInfo(SysLoginInfo logininfo) {
        sysLoginInfoMapper.insertLoginInfo(logininfo);
    }

    @Override
    public List<SysLoginInfo> selectLoginInfoList(SysLoginInfo loginInfo) {
        return sysLoginInfoMapper.selectLoginInfoList(loginInfo);
    }

    @Override
    public int deleteLoginInfoByIds(Long[] infoIds) {
        return sysLoginInfoMapper.deleteLoginInfoByIds(infoIds);
    }

    @Override
    public void cleanLoginInfo() {
        sysLoginInfoMapper.cleanLoginInfo();
    }
}
